<?php
namespace M\Action;
use Common\Action\FirstendAction;
class MsgAction extends FirstendAction{
	
	
	public function index(){
		
		$this->_config_seo(array(
			'title'=>'绑定淘宝账号'
			));                         
		
	 $this->display('Index/msg');
	 
	}
	
	
public function bindtb(){

$time=NOW_TIME;
$tqkuid=I('tqk_uid', '', 'trim');
$UID=I('uid', '', 'trim');

$map=array(
'time'=>$time,
'tqk_uid'=>$tqkuid,
'uid'=>$UID,
'web'=>'m',
'wechat'=>1
);
$token=$this->create_token(trim(C('yh_gongju')),$map);
$url='http://api.tuiquanke.cn/bindtaobao?time='.$time.'&tqk_uid='.$tqkuid.'&uid='.$UID.'&web=m&wechat=1&token='.$token;
$this->assign('quanurl',$url);

		
$this->display('User/bindtb');
		
	}
	
    
}